package week4.hallo;

import java.util.*;

/**
 * 
 * Practicumopgave Programmeren 1
 * @author Rick Clement & Adriaan Dekker
 * @version $Revision: 1 $
 */
public class Hallo {
	// --------------- Instantievariabelen --------------------
		private Scanner in;
		
	// ------------------ Constructor -------------------------
		public Hallo() {
			in = new Scanner(System.in);
		}
		
		public static void main (String[] args) {
			Hallo hallo = new Hallo();
			hallo.run();
		}
 
    // ------------------ Commando's --------------------------
	 
	public void run () {
		System.out.println("Hoe heet je?");
		while (in.hasNextLine()) {
			String line = in.nextLine();
			if (line.equals("")) {
				break;
			}
			System.out.println("Hallo " + line);
			System.out.println("Hoe heet je?");
		} System.out.println("Einde programma");
	}
}